<?php 
function alertMes($mes,$url){
	if ($mes != '') {
		echo "<script>alert('{$mes}');</script>";
	}
	
	echo "<script>window.location='{$url}';</script>";
}
